/*
 *  app.h
 *  QuickMatch
 *
 *  Created by Leroy Ketelaars on 8/13/09.
 *  Copyright 2009 Zombies on Fire. All rights reserved.
 *
 */

#ifndef __APP_H__
#define __APP_H__

#include "SDL.h"
#include "QMView.h"
#include "QMMatch.h"
#include "QMPanel.h"
#include <vector>

using namespace std;

class app: public QMView
{
public:	
	vector<QMMatch*> matches;
	vector<QMMatch*>::iterator matchiterator;
	vector<QMPanel*> panels;
	vector<QMPanel*>::iterator paneliterator;
		
	void go();
	bool handleInteraction();
	void drawMatch(QMMatch* match);
	void drawPanel(QMPanel* panel);
};

SDL_Surface* CreateSurface(int w, int h, unsigned char r, unsigned char g, unsigned char b);

#endif
